package com.yan.demo.loopdemo;

import java.util.Scanner;

public class LoopDemo {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入一个[0-9]的整数");
        int n = input.nextInt();
        if(n < 0 || n > 9){
            System.err.println("输入的数据不合法");
            return;
        }
        int sum = 0 , bit = 0;
        for (int i = 0; i < 5; i++) {
            bit = (int)(n * Math.pow(10 , i)) + bit;
            sum += bit;
        }
        System.out.println(sum);
    }
}
